package com.iqiyi.pps.epg.core.model.task;

/**
 * Created by karkarrotxu on 2015/12/4.
 */
public enum SimpleTaskType {
    QIPU_ACCESS_CHECK(1),
    NOTIFY_MAIL(2),
    PROGRAM_BROADCOAST_CONTROL(3),
    CHANNEL_TO_PROGRAM(4),
    CAROUSEL_AUTOMATION_START(5),
    CAROUSEL_AUTOMATION_APPEND(6),
  //  CAROUSEL_AUTOMATION_QUERY_EXECUTE(7),
    CAROUSEL_RULE_EXECUTE(8),
    CAROUSEL_AUTOMATION_PROGRAM_START(9),
    CAROUSEL_AUTOMATION_PROGRAM_APPEND(10),
//    NOTIFY_SNAP_START(11),
//    NOTIFY_SNAP_STOP(12),
    NOTIFY_VV(13),
    NOTIFY_DIRECTOR(14),
    NOTIFY_RECYCLE_STREAM_URL(15),
//    NOTIFY_VOD_RECORD_START(16),
//    NOTIFY_VOD_RECORD_END(17),
    CHECK_EPISODE_LOGO_URL(18),

    RECORD_TASK_START(25),
    RECORD_TASK_APPEND(26),

    RECORD_COL_RECYCLE(27),
    RECORD_PLAN_RECYCLE(28),
    RECORD_TASK_RECYCLE(29),
    RECORD_VIDEO_RECYCLE(30),
    UNBIND_CHANNEL_SIGNAL(31);
    private int typeIndex ;
    private SimpleTaskType( int index){
        typeIndex = index;
    }

    public int getTypeIndex(){
        return typeIndex;
    }
    public static SimpleTaskType getTypeByIndex(int typeIndex) {
        for (SimpleTaskType contentType : values()) {
            if (contentType.getTypeIndex() == typeIndex) {
                return contentType;
            }
        }
        return null;
    }
}
